package com.shopping.cart.util;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * 日期工具类
 *
 * @author qxf101
 * @since 2021-05-10
 */
public class DateUtil {
    public static LocalDate parseStrToDate(String dateStr) {
        DateTimeFormatter parser = DateTimeFormatter.ofPattern("[yyyy.MM.dd][yyyy.M.d][yyyy.M.dd][yyyy.MM.d]");
        return LocalDate.parse(dateStr, parser);
    }
}
